-- 战报标题
local GuildWarFightReportTitleCell = app.mvc.createListViewCell(...)
--data =
function GuildWarFightReportTitleCell.create(node)
    local sprite = GuildWarFightReportTitleCell.extend(node or cc.CSLoader:createNode(Res.CSGuildWarFightReportTitleCell))
    if node == nil then
        ccui.Helper:doLayout(sprite)
    end
    sprite:init()
    return sprite
end


function GuildWarFightReportTitleCell:init(data)
    self.super.init(self, data)
    self:setContentSize( self._ui.Panel:getContentSize() )
    self:refresh()

end

function GuildWarFightReportTitleCell:refresh()
    if not self._data then
        return
    end
    local round = self._data.round or 0
    self._ui.tlt:setString(string.format(L("CSGuildWarRoundStr"), round))
end








return GuildWarFightReportTitleCell